//
//  Chat.swift
//  WechatApp
//
//  Created on 2024.
//

import Foundation

struct Chat: Identifiable {
    let id = UUID()
    let name: String
    let message: String
    let time: String
    let avatarUrl: String?
    let unreadCount: Int
    
    static let mockChats: [Chat] = [
        Chat(
            name: "AI前沿技术讨论组",
            message: "Alex Chen: GPT-5的多模态能力确实突破很大，特别是推理链",
            time: "16:23",
            avatarUrl: nil,
            unreadCount: 12
        ),
        Chat(
            name: "芯片研发核心团队",
            message: "David Wang: 新的NPU芯片在Transformer推理上性能提升了40%",
            time: "15:30",
            avatarUrl: nil,
            unreadCount: 5
        ),
        Chat(
            name: "模型优化专项组",
            message: "Grace Wu: 量化后的模型大小减少了60%，精度损失<1%",
            time: "14:15",
            avatarUrl: nil,
            unreadCount: 3
        ),
        Chat(
            name: "Alex Chen - AI架构师",
            message: "关于Transformer架构的优化方案，我发给你了",
            time: "13:45",
            avatarUrl: nil,
            unreadCount: 1
        ),
        Chat(
            name: "David Wang - 芯片研发总监",
            message: "最新的芯片测试报告已更新，功耗优化效果很好",
            time: "12:20",
            avatarUrl: nil,
            unreadCount: 0
        ),
        Chat(
            name: "AI前沿资讯分享群",
            message: "Sam Gao: Claude 3.5 Sonnet发布了，在代码和推理方面提升明显",
            time: "11:30",
            avatarUrl: nil,
            unreadCount: 8
        ),
        Chat(
            name: "Grace Wu - 模型优化专家",
            message: "模型训练进度：85%，预计明天完成，可以开始部署测试",
            time: "昨天",
            avatarUrl: nil,
            unreadCount: 0
        ),
        Chat(
            name: "家庭群",
            message: "妻子: 晚上记得回家吃饭",
            time: "昨天",
            avatarUrl: nil,
            unreadCount: 2
        ),
        Chat(
            name: "妻子",
            message: "好的，我下班就回去",
            time: "昨天",
            avatarUrl: nil,
            unreadCount: 0
        ),
        Chat(
            name: "产品技术对接群",
            message: "Nancy Xu: API接口文档已更新，支持最新的模型推理接口",
            time: "星期一",
            avatarUrl: nil,
            unreadCount: 0
        ),
        Chat(
            name: "算法团队工作群",
            message: "Kevin Lin: 新的训练策略效果不错，准确率提升了3%",
            time: "星期一",
            avatarUrl: nil,
            unreadCount: 15
        ),
        Chat(
            name: "芯片架构设计组",
            message: "Mike Huang: 下一代芯片的架构设计初稿已完成",
            time: "星期一",
            avatarUrl: nil,
            unreadCount: 7
        ),
        Chat(
            name: "妈妈",
            message: "周末回家吗？",
            time: "星期日",
            avatarUrl: nil,
            unreadCount: 1
        ),
        Chat(
            name: "AI模型部署组",
            message: "Peter Zhu: 新模型已部署到测试环境，性能监控正常",
            time: "星期五",
            avatarUrl: nil,
            unreadCount: 0
        ),
        Chat(
            name: "技术专家讨论组",
            message: "William Feng: 关于大模型推理加速的方案，大家有什么想法？",
            time: "星期五",
            avatarUrl: nil,
            unreadCount: 6
        ),
    ]
}

